package obecto.event
{
	import flash.events.Event;
	
	import obecto.task.ITask;

	public class TaskContainerEvent extends Event
	{
		public static const TASK_ADDED : String = "taskAdded";
		public static const TASKS_ADDED : String = "tasksAdded";
		public static const TASK_REMOVED : String = "taskRemoved";
		public static const TASKS_REMOVED : String = "tasksRemoved";
		
		public var task : ITask;
		public var tasks : Array;
		
		public function TaskContainerEvent(type : String, task : ITask, tasks : Array, 
			bubbles : Boolean = false, cancelable : Boolean = false)
		{
			super(type, bubbles, cancelable);
			
			this.task = task;
			this.tasks = tasks;
		}		
	}
}